import { lazy } from "react";
import { Navigate } from "react-router-dom";
const Pro = lazy(() => import("../../views/Index/Pro"));
const Cooperate = lazy(() => import("../../views/Index/Cooperate"));

const ProMent = lazy(() => import("../../views/Index/Pro/ProMent"));
const ProFocus = lazy(() => import("../../views/Index/Pro/Pro Focus"));

const CusMent = lazy(() => import("../../views/Index/Cooperate/CusMent"));
const FolFriends = lazy(() => import("../../views/Index/Cooperate/FolFriends"));
const SalMent = lazy(() => import("../../views/Index/Cooperate/SalMent"));
const SupMent = lazy(() => import("../../views/Index/Cooperate/SupMent"));

const Focus = lazy(() => import("../../views/Index/Pro/Pro Focus/Focus"));
const FocusTs = lazy(() => import("../../views/Index/Pro/Pro Focus/FocusTs"));
const Fol = lazy(() => import("../../views/Index/Cooperate/FolFriends/Fol"));
const Folright = lazy(
  () => import("../../views/Index/Cooperate/FolFriends/Folright")
);
export default [
  {
    path: "/index/pro",
    element: <Pro />,
    children: [
      {
        path: "/index/pro/proment",
        element: <ProMent />,
      },
      {
        path: "/index/pro/profocus",
        element: <ProFocus />,
        children: [
          {
            path: "/index/pro/profocus/focus",
            element: <Focus />,
          },
          {
            path: "/index/pro/profocus/focusts",
            element: <FocusTs />,
          },
          {
            path: "/index/pro/profocus/",
            element: <Navigate to="/index/pro/profocus/focus" />,
          },
        ],
      },
    ],
  },
  {
    path: "/index/cooperate",
    element: <Cooperate />,
    children: [
      {
        path: "/index/cooperate/cusment",
        element: <CusMent />,
      },
      {
        path: "/index/cooperate/folfriends",
        element: <FolFriends />,
        children: [
          {
            path: "/index/cooperate/folfriends/fol",
            element: <Fol />,
          },
          {
            path: "/index/cooperate/folfriends/folriht",
            element: <Folright />,
          },
          {
            path: "/index/cooperate/folfriends/",
            element: <Navigate to="/index/cooperate/folfriends/fol" />,
          },
        ],
      },
      {
        path: "/index/cooperate/salment",
        element: <SalMent />,
      },
      {
        path: "/index/cooperate/supment",
        element: <SupMent />,
      },
    ],
  },
];
